import { Component, OnInit } from '@angular/core';
import {EventBusService} from "../../services/event-bus.service"
@Component({
  selector: 'app-footer',
  templateUrl: './footer.component.html',
  styleUrls: ['./footer.component.scss']
})
export class FooterComponent implements OnInit {
  color:string = 'primary';
  constructor(private eventBus:EventBusService) {
    this.eventBus.toogleButton.subscribe(bool=>{
      bool?this.color = '':this.color = 'primary';
    })
  }
  ngOnInit() {
  }

}
